<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	  			xmlns:h="http://java.sun.com/jsf/html"
	 			xmlns:p="http://primefaces.org/ui" 
	 			xmlns:c="http://java.sun.com/jsf/core"
      			xmlns:ui="http://java.sun.com/jsf/facelets">


<h:form id="form">  
              
    <p:growl id="messages" showDetail="true" />  
  
    <p:contextMenu for="serviceTypeTreeview">  
        <p:menuitem value="Novo" update="messages" action="#{serviceTypeBean.novo}" 
        	icon="ui-icon-circle-plus" />
        <p:menuitem value="Editar" update="messages" action="#{serviceTypeBean.edit}" 
        	icon="ui-icon-search" />    
        <p:menuitem value="Excluir" update="serviceTypeTreeview" actionListener="#{serviceTypeBean.removeNode}" 
        	icon="ui-icon-close"/>  
    </p:contextMenu>  
  
    <p:tree id="serviceTypeTreeview" value="#{serviceTypeBean.root}" var="node"  
        selectionMode="single"  
        selection="#{serviceTypeBean.selectedNode}"  
        dynamic="true">  
  		
        <p:treeNode>  
            <h:outputText value="#{node}" />  
        </p:treeNode>  
    </p:tree>  
  
</h:form>  

</ui:composition>